#pragma once

#include<iostream>
#include"Protocol.hpp"

class Task {
public:
    Task() {}
    Task(int sock) :sock_(sock) {

    }

    void Process() {
        handler_(sock_);
    }

    ~Task(){}
private:
    int sock_;
    CallBack handler_;
};